package zhu.areas.tenderbid.service;

import java.util.List;

import zhu.areas.tenderbid.dao.IBidAppDAO;
import zhu.areas.tenderbid.data.BidApp;

public class BidAppServiceImpl implements IBidAppService{

	private  IBidAppDAO  bidAppDAO;

	public IBidAppDAO getBidAppDAO() {
		return bidAppDAO;
	}

	public void setBidAppDAO(IBidAppDAO bidAppDAO) {
		this.bidAppDAO = bidAppDAO;
	}

	public Boolean addBidApp(BidApp bidApp) {
		bidAppDAO.save(bidApp);
		return true;
	}

	public Boolean updateBidApp(BidApp bidApp) {
		bidAppDAO.update(bidApp);
		return true;
	}

	public Boolean deleteBidApp(BidApp bidApp) {
		bidAppDAO.delete(bidApp);
		return true;
	}

	public BidApp getBidAppByID(int id) {
		return (BidApp) bidAppDAO.findById(BidApp.class, id);
	}

	public List<BidApp> getAllBidApp() {
		
		return null;
	}
	
	
}
